<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri= "http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>企业网站开发</title>
  	<link href="<%=basePath%>css/main.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath%>css/slide.css" rel="stylesheet" type="text/css"/>
	
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		<script type="text/javascript" src="<%=basePath%>js/slide.js"></script>
   
   
   
   
    <style type="text/css" >
    
    
		 a.act:hover {
    		background-color:#fff;
    		color:#000000;
		}
	</style>


 

</head>

<body>
   <%@include file="common/top.jsp" %>
		<!--页面顶端top结束-->
    <div class="wrap">
       <%@include file="common/nav.jsp" %>
			
			<!--nav结束-->
        <div class="ad" style="height:243px;">
             <a href="#"><img src="<%=basePath%>image/ad.jpg" alt=""></a>
        </div>
                <!--ad结束-->
        <div class="list_main">
              <%@include file="common/navleft.jsp"  %>
            <!-- 左侧导航 列表结束-->
            
            
            <div class="list_box">
                <h2>文章列表</h2>
                <div class="news_list">
                    <ul>
                    	<c:forEach items="${pager.list}" var="item">
								  <li><span>${item.createdate}</span><a href="<%=basePath%>front/index?cmd=openarticle&nid=${param.nid}&pid=${param.pid}&pname=${param.pname}&aid=${item.aid}">${item.title}</a> </li>
						</c:forEach>
                    </ul>
                </div>
                <div class="page"> 
                	
							
								<a class="act">共计：${pager.pagectrl.pagecount}页/${pager.pagectrl.rscount}条记录</a>
							
								<a href="<%=basePath%>front/index?cmd=enterpricemsg&nid=${param.nid}&pid=${param.pid}&pname=${param.pname}&index=1">首页</a>
							
								<c:if test="${pager.pagectrl.currentindex==1}" var="fp">
									<a style="disabled:true"  class="act">上一页</a>
								</c:if>
								<c:if test="${!fp}">
									<a href="<%=basePath%>front/index?cmd=enterpricemsg&nid=${param.nid}&pid=${param.pid}&pname=${param.pname}&index=${pager.pagectrl.currentindex-1}">上一页</a>
								</c:if>
													
							
							<c:forEach begin="${pager.pagectrl.minpage}" step="1" end="${pager.pagectrl.maxpage}" var="index">
							
								<c:if test="${pager.pagectrl.currentindex==index}" var="t">
									<a class="active">${index}</a>
								</c:if>
								<c:if test="${!t}">
								<a href="<%=basePath%>front/index?cmd=enterpricemsg&nid=${param.nid}&pid=${param.pid}&pname=${param.pname}&index=${index}">${index}</a>
								</c:if>
							
							</c:forEach>
							
							
								<c:if test="${pager.pagectrl.currentindex==pager.pagectrl.pagecount}" var="fp">
									<a style="disabled:true" class="act">下一页</a>
								</c:if>
								<c:if test="${!fp}">
									<a href="<%=basePath%>front/index?cmd=enterpricemsg&nid=${param.nid}&pid=${param.pid}&pname=${param.pname}&index=${pager.pagectrl.currentindex+1}">下一页</a>
								</c:if>
							
							<a href="<%=basePath%>front/index?cmd=enterpricemsg&nid=${param.nid}&pid=${param.pid}&pname=${param.pname}&index=${pager.pagectrl.maxpage}">末页</a>
                
                
                
                
                
                
                
                
                
               <a href="#">…</a>

            </div>




            </div>
        </div>

</div>

                 <!--最外层wrap结束  -->

<%@include file="common/bottom.jsp" %>



 <!--copyright_content结束-->

</body>


</html>